﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using KPIS.GERP.GIMS.MODEL;
using KPIS.GERP.GIMS.DAL;
using KPIS.GERP.GIMS.DALFactory;
using KPIS.DBM;
namespace KPIS.GERP.GIMS.BLL
{
    public class DeliveryNoteCommitteeBLL
    {
        private static readonly DeliveryNoteCommitteeDAL dal = DataAccess.CreateDeliveryNoteCommittee();

        public DeliveryNoteCommitteeBLL()
        {

        }

        public DeliveryNoteCommitteeInfo GetDeliveryNoteCommittee(int seq)
        {
            return dal.GetDeliveryNoteCommittee(seq);
        }

        public IList<DeliveryNoteCommitteeInfo> GetDeliveryNoteCommitteeFromPurchaseOrder(int po_seq)
        {
            return dal.GetDeliveryNoteCommitteeFromPurchaseOrder(po_seq);
        }

        public IList<DeliveryNoteCommitteeInfo> GetDeliveryNoteCommitteeWithParent(int dn_seq)
        {
            return dal.GetDeliveryNoteCommitteeWithParent(dn_seq);
        }

        public void Insert(IList<DeliveryNoteCommitteeInfo> infoList, Nullable<int> dn_seq, DeliveryNoteInfo info, IDBManager dbManagerTrans)
        {
            dal.Insert(infoList, dn_seq, info, dbManagerTrans);
        }

        public void Insert(DeliveryNoteCommitteeInfo info)
        {
            dal.Insert(info);
        }

        public void Update(DeliveryNoteCommitteeInfo info)
        {
            dal.Update(info);
        }

        public void DeleteAll(IList<DeliveryNoteCommitteeInfo> infoList)
        {
            dal.DeleteAll(infoList);
        }

        public void DeleteFromDB(IList<DeliveryNoteCommitteeInfo> infoList)
        {
            dal.DeleteFromDB(infoList);
        }
    }
}
